package com.itheima.d09_jdk8_localDate;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Locale;

public class Test {
    /*
    * localDate 日期
    * localTime 时间
    * localDateTime 日期和时间
    * */
    public static void main(String[] args) {
        LocalDate ld = LocalDate.now();
        System.out.println(ld);

        LocalTime lt = LocalTime.now();
        System.out.println(lt);

        LocalDateTime ldt = LocalDateTime.now();
        System.out.println(ldt);
//        设置时间和日期
        LocalDateTime ldt1 = LocalDateTime.of(2020, 10, 10, 10, 10, 10);
        System.out.println(ldt1);
    }
}
